package com.blockmeta.bbs.immodule.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import com.blankj.utilcode.util.LogUtils;

import com.blockmeta.bbs.baselibrary.base.app.BaseApp;
import com.blockmeta.bbs.businesslibrary.activity.DeepLinkActivity;
import com.blockmeta.bbs.businesslibrary.widget.ForegroundCallbacks;

/**
 * Created by author on 2019/3/19.
 * 广播的统一封装，具体逻辑后期处理！
 */

public class IMDataReceiver extends BroadcastReceiver {


    @Override
    public void onReceive(Context context, Intent intent) {


        String key = intent.getAction();
        LogUtils.i("author" + "IMDataReceiver" + key + " " + intent.getData());
        if (!TextUtils.isEmpty(key)) {
            IMMsgDispatcher.getInstance().dispatch(key, intent);
        } else {
        }

    }
}
